<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>首页</title>
		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
		<link rel="shortcut icon" href="img/favicon.ico">
	</head>
	<body ng-app="myapp" ng-controller="indexController" ng-init="loadIndexGoods()">
		<!--导航条-->
		<div>
		<ng-include src="'nav.html'"></ng-include>
		</div>
		<!--导航条-->
		<div class="container">
			<div class="row">
				<div>
					<h2>热卖商品</h2>
					<div class="row">
						<a href="4xiangqing.html#?id={{goods.id}}" ng-repeat="goods in hots">
							<div class="col-sm-6 col-md-3">
								<div id="thumbnail">
									<img src="{{goods.pimage}}" >
									<div class="caption">
										<h4>{{goods.pname}}</h4>
										<p class="price">￥{{goods.marketPrice}}</p>
									</div>
								</div>
							</div>
						</a>
					</div>
					<h2>最新商品</h2>
					<div class="row">
						<a href="4xiangqing.html#?id={{goods.id}}" ng-repeat="goods in news">
							<div class="col-sm-6 col-md-3">
								<div id="thumbnail">
									<img src="{{goods.pimage}}" >
									<div class="caption">
										<h4>{{goos.pname}}</h4>
										<p class="price">￥{{goods.marketPrice}}</p>
									</div>
								</div>
							</div>
						</a>
					</div>
				</div>
			</div>
		</div>
	</body>
	<script src="js/angularjs/angular.min.1.5.8.js"></script>
	<script src="js/base/base.js"></script>
	<script src="js/service/categoryService.js"></script>
	<script src="js/controller/navController.js"></script>
	<script src="js/service/goodsService.js"></script>
	<script src="js/service/loginService.js"></script>
	<script src="js/controller/indexController.js"></script>
</html>
